QT       += core gui \
    quick

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++14

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    calldialog.cpp \
    loginwindow.cpp \
    main.cpp \
    mainwindow.cpp \
    rendermanager.cpp \
    sdkmanager.cpp \
    videographicview.cpp \
	util.cpp

HEADERS += \
    calldialog.h \
    loginwindow.h \
    mainwindow.h \
    renderinterface.h \
    rendermanager.h \
    sdkmanager.h \
    videographicview.h \
	util.h

FORMS += \
    calldialog.ui \
    loginwindow.ui \
    mainwindow.ui

# 添加包含路径
INCLUDEPATH += $$PWD/../../../sdk/cpp/include
INCLUDEPATH += "C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um"
INCLUDEPATH += "F:\temp\mediasoup\libmediasoupclient\libwebrtc\include"

# 添加依赖库
LIBS += -L$$PWD/../../../sdk/cpp/build/lib/Debug -lp2pms_client_sdk
LIBS += -L"F:\temp\mediasoup\libmediasoupclient\libmediasoupclient\build\Debug" -lmediasoupclient
LIBS += -L"F:\temp\mediasoup\libmediasoupclient\libmediasoupclient\build\_deps\libsdptransform-build\Debug" -lsdptransform
LIBS += -L"F:\temp\mediasoup\libmediasoupclient\libwebrtc\lib\debug" -lwebrtc
LIBS += -L"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x64" \
        -lIphlpapi \
        -lDmoguids \
        -lStrmiids \
        -lSecur32 \
        -lWinMM \
        -lOle32 \
        -lwmcodecdspuuid \
        -lmfplat \
        -lmsdmo \
        -lole32 \
        -loleaut32 \
        -luser32 \
        -ld3d11 \
        -ldxgi \
        -ld3dcompiler

DEFINES += _WIN32_WINNT=0x0A00

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

# 添加拷贝命令：只在构建成功后执行
win32 {
    QMAKE_POST_LINK = (if exist "F:\\develop\\opensorce\\p2pms\\p2pms\\client\\demo\\windows\\p2pms_client\\build\\Desktop_Qt_6_5_3_MSVC2019_64bit-Debug\\log" rmdir /S /Q "F:\\develop\\opensorce\\p2pms\\p2pms\\client\\demo\\windows\\p2pms_client\\build\\Desktop_Qt_6_5_3_MSVC2019_64bit-Debug\\log") & (if exist "D:\\tmp\\p2pms\\log" rmdir /S /Q "D:\\tmp\\p2pms\\log") & copy /Y "F:\\develop\\opensorce\\p2pms\\p2pms\\client\\demo\\windows\\p2pms_client\\build\\Desktop_Qt_6_5_3_MSVC2019_64bit-Debug\\debug\\p2pms_client.exe" "D:\\tmp\\p2pms\\p2pms_client.exe"
}
